#include<iostream>

using namespace std;

void handle_1() {
    cout << "Enter yout height: ________\b\b\b\b\b\b\b\b";
    int height;
    cin >> height;
    const int Ft_per_in = 12;
    int fn, in;
    fn = height / Ft_per_in;
    in = height % Ft_per_in;
    cout << fn << " feet, " << in << " inches." << endl;
}

void handle_2() {
    cout << "Enter your feet:________\b\b\b\b\b\b\b\b";
    int feet;
    cin >> feet;
    cout << "Enter your inches:________\b\b\b\b\b\b\b\b";
    int inch;
    cin >> inch;
    cout << "Enter your weight:________\b\b\b\b\b\b\b\b";
    int weight_p;
    cin >> weight_p;
    int height_inch;
    const int Ft_per_in = 12;
    const double M_per_int = 0.0254;
    const double Kg_per_P = 2.2;
    height_inch = feet * Ft_per_in + inch;
    double height_meter = height_inch * M_per_int;
    double weight_kg = weight_p / Kg_per_P;
    cout << "That means you are " << height_meter << " meters height and " << weight_kg << " kilograms weight" << endl;
    double BMI = weight_kg / (height_meter * height_meter);
    cout << "BMI is " << BMI << endl;
}

void handle_3() {
    cout << "Enter a latitude in degrees, minutes, and seconds:" << endl;
    cout << "First, enter the degrees: ";
    int degree;
    cin >> degree;
    cout << "Next, enter thr minutes of arc: ";
    int minute;
    cin >> minute;
    cout << "Finally, enter the seconds of arc:";
    int second;
    cin >> second;
    const int tmp = 60;
    double latitude = degree + double(minute) / tmp + double(second) / tmp / tmp;
    cout << degree << " degrees, " << minute << " minute, " << second << " second = " << latitude << " degrees" << endl;
}

void handle_4() {
    const int tmp = 60;
    long long seconds;
    cout << "Enter the number of seconds: ";
    cin >> seconds;
    long long record = seconds;
    int second = seconds % tmp;
    seconds /= tmp;
    int minute = seconds % tmp;
    seconds /= tmp;
    int hour = seconds % tmp;
    const int tmp2 = 24;
    int day = seconds / tmp2;
    cout << record << " seconds = " << day << " days, " << hour << " hours, " << minute << " minutes, " << second << " second" << endl;
}

void handle_5() {
    cout << "Enter the world's population: ";
    long long wp;
    cin >> wp;
    cout << "Enter the populationof the US: ";
    long long usp;
    float rate = float(usp) / float(wp) * 100;
    cout << "The population of the US is " << rate << "%of the world population." << endl;
}

void handle_6() {
    cout << "Enter your miles: ";
    int miles;
    cin >> miles;
    cout << "Enter your calons: ";
    int calons;
    cin >> calons;
    cout << "You drive " << float(miles) / float(calons) << " miles using 1 calons gas" << endl;
}

void handle_7() {
    cout << "Enter your kilometers: ";
    float kilometer;
    cin >> kilometer;
    cout << "Enter your litros: ";
    float litro;
    cin >> litro;
    float ans = litro / (kilometer / 100);
    cout << "Every 100 kilometers cost " << ans << " litros gas in Europe" << endl;
    const float Calon_per_litro = 3.875;
    const float Mile_per_100kilometers = 62.14;
    float mile = kilometer / 100 * Mile_per_100kilometers;
    float calon = litro / Calon_per_litro;
    float ans2 = mile / calon;
    cout << mile << " miles using 1 calon gas in the US" << endl;
    cout << ans << "/100km = " << ans2 << " mpg" << endl;
}

int main() {
    handle_4();
}